package com.fezs.mybatis.code.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fezs.mybatis.model.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 能量豆配置表
 * </p>
 *
 * @author zhukai
 * @since 2022/8/18
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("energybean_amount")
public class EnergybeanAmount extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 企业成员的userid
     */
    private String userId;

    /**
     * 渠道类型(1:企微渠道)
     */
    private Integer channelType;

    /**
     * 累计配置总数
     */
    private BigDecimal totalConfigQty;

    /**
     * 累计发放人次
     */
    private Integer totalSendCount;

    /**
     * 累计发放总数
     */
    private BigDecimal totalSendQty;

    /**
     * 可用总数
     */
    private BigDecimal availableQty;

    /**
     * 状态(1:有效,0:无效)
     */
    private Integer status;

}
